import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'


const campusId = 'campusId'

const tenantId = 'tenant_id'

export function getToken() {
    return Cookies.get(TokenKey)
}

export function setToken(token) {
    return Cookies.set(TokenKey, token)
}

export function removeToken() {
    return Cookies.remove(TokenKey)
}

export function setCampusId(hide) {
    return Cookies.set(campusId, hide)
}

export function getCampusId() {
    return Cookies.get(campusId)
}
export function setTenantId(hide) {
    return Cookies.set(tenantId, hide)
}
export function getTenantId() {
    return Cookies.get(tenantId)
}